@model IEnumerable<OurWedding1.Models.WeddingPhoto>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Upload", "Upload")
</p>
<table>
    <thead>
        <tr>
           <td>Thumbnail</td>
            <th></th>
        </tr>
    </thead>

    @foreach (var item in Model)
    {
        <tr>
            <td>
                @* http://res.cloudinary.com/hdq73umpz/image/upload/w_960,h_640,c_fill/@item.GenerateImageFileName() *@
                <img width="114" height="114" src="http://res.cloudinary.com/hdq73umpz/image/upload/c_thumb,g_faces,h_114,w_114/@item.GenerateImageFileName()"/>

            </td>
            
            <td>
                @Html.ActionLink("Details", "Details", new { id = item.WeddingPhotoId }) |
                @Html.ActionLink("Delete", "Delete", new { id = item.WeddingPhotoId })
            </td>
        </tr>
    }

</table>


